<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Post.aspx.cs" ValidateRequest="false" Inherits="ScrewTurn.Wiki.Post" Title="Untitled Page" Culture="auto" meta:resourcekey="PageResource1" UICulture="auto" %>
<%@ Register TagPrefix="st" TagName="Captcha" Src="~/Captcha.ascx" %>

<asp:Content ID="ctnPost" ContentPlaceHolderID="CphMaster" Runat="Server">

    <h1 class="pagetitlesystem"><asp:Literal ID="lblTitle" runat="server" Text="Post a Message" meta:resourcekey="lblTitleResource1" /></h1>
    <p>
        <asp:Literal ID="lblPostMessage" runat="server" Text="Post a Message in" meta:resourcekey="lblPostMessageResource1" /><br />
        <asp:Literal ID="lblInReply" runat="server" Text="in reply to" meta:resourcekey="lblInReplyResource1" />
        <asp:Literal ID="lblEdit" runat="server" Text="Edit message" meta:resourcekey="lblEditResource1" />
    </p>
    <br />
    
    <p><asp:Literal ID="lblSender" runat="server" Text="From" meta:resourcekey="lblSenderResource1" /></p>
    <br />
    
    <p><asp:Literal ID="lblSubject" runat="server" Text="Subject" meta:resourcekey="lblSubjectResource1" /></p>
    <asp:TextBox ID="txtSubject" runat="server" Width="400px" meta:resourcekey="txtSubjectResource1" />
    <br /><br />
    
    <asp:TextBox ID="txtBody" runat="server" TextMode="MultiLine" Width="98%" Height="300px" meta:resourcekey="txtBodyResource1" />
    <br /><br />
    
    <div style="height: 40px;">
		<asp:Panel ID="pnlCaptcha" runat="server" style="float: left;">
			<st:Captcha ID="captcha" runat="server" />
		</asp:Panel>
		<div>
			<asp:Button ID="btnSend" runat="server" Text="Send" style="font-weight: bold;" OnClick="btnSend_Click" meta:resourcekey="btnSendResource1" />
			<asp:Button ID="btnPreview" runat="server" Text="Preview" OnClick="btnPreview_Click" meta:resourcekey="btnPreviewResource1" CausesValidation="false" />
			<asp:Button ID="btnCancel" runat="server" Text="Cancel" OnClick="btnCancel_Click" meta:resourcekey="btnCancelResource1" CausesValidation="false" />
			<asp:Label ID="lblResult" runat="server" meta:resourcekey="lblResultResource1" />
		</div>
    </div>
    
    <br /><br />
    <asp:Literal ID="lblPreview" runat="server" Visible="False" meta:resourcekey="lblPreviewResource1" />
    
    <script type="text/javascript">
    <!--
        var subj = __GetServerElementById("txtSubject");
        if(subj.value == "") subj.focus();
        else __GetServerElementById("txtBody").focus();
    // -->
    </script>

</asp:Content>
